<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:t="http://hotelmanager.com/tags"        
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
>

<head>
    <link href="#{facesContext.externalContext.requestContextPath}/ResourceFiles/css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <ui:composition template="/content/templates/main.xhtml">


    <ui:define name="header">
        <ui:include src="/content/templates/header.xhtml"/>
    </ui:define>
    <div id="content_container">
    <ui:define name="navigation">
        <ui:include src="/content/templates/navigation.xhtml"/>
    </ui:define>

    <ui:define name="content">
      <br/>  
      <div id="filter">
         <ui:include src="/content/templates/filter.xhtml"/>
      </div>
       <f:view>
        <h:form>
          <h:dataTable  value="#{RoomListFilter.fltResult}" var="result" width="100%" >
            <h:column>
                <t:ItemRowDetails Image="/ResourceFiles/rooms/blc.jpg" RoomNum="#{result.room_id}" Rooms="#{result.rooms_Qty}" Places="#{result.places}" Style="#{result.style_name}" Status="#{result.status}" Status_Desc="#{FltReference.getRoomStatusFromRef(result.status)}" Cost="#{result.cost}" />
            </h:column>
          </h:dataTable>
        </h:form>
       </f:view> 
    </ui:define>

    <ui:define name="panel">
        <ui:include src="/content/templates/panel.xhtml"/>
    </ui:define>

    <ui:define name="footer">
        <ui:include src="/content/templates/footer.xhtml"/>
    </ui:define>
    </div> 

</ui:composition>
</body>
</html>
